package org.example.mapper;

import org.apache.ibatis.annotations.Param;
import org.example.pojo.Activation;
import java.util.List;

/**
 * @Author: Edward
 * @Date:2022-08-31 14:14
 * @subject:
 */
public interface ActivationMapper {

    /**
     * 添加月度目标
     * @param activation
     * @return
     */
    boolean addActivation(Activation activation);

    /**
     * 修改月度目标
     * @param activation
     * @return
     */
    boolean updateActivation(Activation activation);

    /**
     * 查询全部月度目标
     * @return
     */
    List<Activation> showAllActivation();

    /**
     * 根据标题进行模糊查询
     * @param aName
     * @return
     */
    List<Activation> selectActivationByName(@Param("aName") String aName);

    /**
     * 根据id删除月度目标
     * @param aId
     * @return
     */
    boolean deleteActivationById(@Param("aId") Integer aId);

}
